package com.lc.luzhengtang.conn;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.RegisterBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.REGISTER)
public class ConnRegister extends BaseAsyPost<RegisterBean>{

    public String mobile,password,code,codetion;
public static String Toast;

    public ConnRegister(String mobile, String password, String code, String codetion, AsyCallBack<RegisterBean> asyCallBack) {
        super(asyCallBack);
        this.mobile=mobile;
        this.password=password;

        this.code=code;
        this.codetion=codetion;
    }

    @Override
    protected RegisterBean parser(JSONObject object) throws Exception {

        RegisterBean registerBean=new RegisterBean();
        Gson gson=new Gson();

        registerBean=gson.fromJson(object.toString(),RegisterBean.class);


        return registerBean;
    }
}



